package com.example.stock.vo;

import lombok.Data;

@Data
public class PlusVo {

    private double trPlus;

    private int trQty;

    public static PlusVo getPlusVo(Double qty){
        PlusVo plusVo = new PlusVo();

        int sou = ((int) (qty / 100)) * 100;
        plusVo.setTrQty(sou);
        plusVo.setTrPlus(qty - sou);
        return plusVo;
    }
}
